<?php
  function urlGenUrl($page, $params) {
    $url = '';
    switch($page) {
      case 'offer':
        $url = '/offer/'.$params['id'];
        break;
      case 'demand':
        $url = '/demand/'.$params['id'];
        break;
    }
    
    return $url;
  }
